package mobilesearch.receiver;

import java.util.ArrayList;
import mobilesearch.data.VideoData;
import mobilesearch.ui.OnSearchResultListener;

public class VideoReceiver {
	
	private static final String TAG = "VideoReceiver";
	private ArrayList<VideoData> videoList;
	private OnSearchResultListener listener;
	
	public VideoReceiver(ArrayList<VideoData> videoList, OnSearchResultListener listener) {
		this.videoList = videoList;
		this.listener = listener;
	}
	
	public void processVideoData(){
		int size = this.videoList.size();
		for(int i = 0; i < size; i++){
			VideoData data = this.videoList.get(i);
			String name = data.getVideoName();
			String time = data.getVideoTime();
			this.listener.onReceiveVideoData(name, time);
		}
	}
}
